home *** CD-ROM | disk | FTP | other *** search
- VERSION 4.00
- Begin VB.Form Send
- Appearance = 0 'Flat
- BackColor = &H80000005&
- Caption = "Send Mail"
- ClientHeight = 5640
- ClientLeft = 2100
- ClientTop = 1320
- ClientWidth = 6690
- Height = 6045
- Icon = "Send.frx":0000
- Left = 2040
- LinkTopic = "Form1"
- LockControls = -1 'True
- ScaleHeight = 5640
- ScaleWidth = 6690
- ShowInTaskbar = 0 'False
- Top = 975
- Width = 6810
- Begin VB.PictureBox AttachmentFrame
- Appearance = 0 'Flat
- BackColor = &H00FFFFFF&
- ForeColor = &H80000008&
- Height = 255
- Left = 180
- ScaleHeight = 225
- ScaleWidth = 3405
- TabIndex = 10
- Top = 1980
- Visible = 0 'False
- Width = 3435
- Begin VB.Image PaperClip
- Height = 480
- Left = -30
- MouseIcon = "Send.frx":0442
- MousePointer = 99 'Custom
- Picture = "Send.frx":0594
- Top = -150
- Width = 480
- End
- Begin VB.Label AttachmentName
- AutoSize = -1 'True
- BackStyle = 0 'Transparent
- ForeColor = &H00000000&
- Height = 195
- Left = 375
- TabIndex = 11
- Top = 15
- Width = 3015
- WordWrap = -1 'True
- End
- End
- Begin VB.TextBox MessageText
- BackColor = &H00FFFFFF&
- BorderStyle = 0 'None
- Height = 3195
- Left = 870
- MultiLine = -1 'True
- ScrollBars = 2 'Vertical
- TabIndex = 4
- Top = 2415
- Width = 5820
- End
- Begin VB.TextBox CopyTo
- Appearance = 0 'Flat
- BackColor = &H00FFFFFF&
- BorderStyle = 0 'None
- Height = 285
- Left = 2100
- TabIndex = 1
- Top = 1245
- Width = 3510
- End
- Begin VB.TextBox Subject
- Appearance = 0 'Flat
- BackColor = &H00FFFFFF&
- BorderStyle = 0 'None
- Height = 285
- Left = 2100
- TabIndex = 3
- Top = 1590
- Width = 3510
- End
- Begin VB.TextBox SendTo
- Appearance = 0 'Flat
- BackColor = &H00FFFFFF&
- BorderStyle = 0 'None
- Height = 285
- Left = 2100
- TabIndex = 0
- Top = 915
- Width = 3510
- End
- Begin VB.PictureBox LeftBorder
- Appearance = 0 'Flat
- BackColor = &H00C0FFFF&
- BorderStyle = 0 'None
- ForeColor = &H80000008&
- Height = 20000
- Left = -30
- ScaleHeight = 19995
- ScaleWidth = 795
- TabIndex = 7
- Top = 0
- Width = 795
- Begin VB.Label AttachLabel
- Alignment = 2 'Center
- BackStyle = 0 'Transparent
- Caption = "Attach"
- BeginProperty Font
- name = "Comic Sans MS"
- charset = 0
- weight = 400
- size = 9.75
- underline = 0 'False
- italic = 0 'False
- strikethrough = 0 'False
- EndProperty
- Height = 345
- Left = 120
- MouseIcon = "Send.frx":089E
- MousePointer = 99 'Custom
- TabIndex = 13
- Top = 1590
- Width = 600
- WordWrap = -1 'True
- End
- Begin VB.Image AttachIcon
- Height = 480
- Left = 195
- MouseIcon = "Send.frx":09F0
- MousePointer = 99 'Custom
- Picture = "Send.frx":0B42
- Top = 1830
- Width = 480
- End
- Begin VB.Label SendLabel
- Alignment = 2 'Center
- BackStyle = 0 'Transparent
- Caption = "Send"
- BeginProperty Font
- name = "Comic Sans MS"
- charset = 0
- weight = 400
- size = 9.75
- underline = 0 'False
- italic = 0 'False
- strikethrough = 0 'False
- EndProperty
- Height = 345
- Left = 105
- MouseIcon = "Send.frx":0F84
- MousePointer = 99 'Custom
- TabIndex = 12
- Top = 45
- Width = 600
- WordWrap = -1 'True
- End
- Begin VB.Image SendIcon
- Height = 480
- Left = 180
- MouseIcon = "Send.frx":10D6
- MousePointer = 99 'Custom
- Picture = "Send.frx":1228
- Top = 285
- Width = 480
- End
- Begin VB.Label ExitButton
- Alignment = 2 'Center
- BackStyle = 0 'Transparent
- Caption = "Exit"
- BeginProperty Font
- name = "Comic Sans MS"
- charset = 0
- weight = 400
- size = 9.75
- underline = 0 'False
- italic = 0 'False
- strikethrough = 0 'False
- EndProperty
- Height = 345
- Left = 105
- MouseIcon = "Send.frx":166A
- MousePointer = 99 'Custom
- TabIndex = 8
- Top = 5295
- Width = 600
- WordWrap = -1 'True
- End
- End
- Begin VB.Label ReturnAddress
- AutoSize = -1 'True
- BackStyle = 0 'Transparent
- Caption = "Return Address"
- Height = 195
- Left = 900
- TabIndex = 9
- Top = 75
- Width = 2175
- WordWrap = -1 'True
- End
- Begin VB.Image PickAddress
- Height = 285
- Index = 1
- Left = 5655
- MouseIcon = "Send.frx":17BC
- MousePointer = 99 'Custom
- Picture = "Send.frx":190E
- Top = 1275
- Width = 300
- End
- Begin VB.Image PickAddress
- Height = 285
- Index = 0
- Left = 5655
- MouseIcon = "Send.frx":1ECC
- MousePointer = 99 'Custom
- Picture = "Send.frx":201E
- Top = 945
- Width = 300
- End
- Begin VB.Line lneBorder
- BorderColor = &H00808000&
- Index = 3
- X1 = 780
- X2 = 20000
- Y1 = 2340
- Y2 = 2340
- End
- Begin VB.Line lneBorder
- BorderColor = &H00000000&
- Index = 2
- X1 = 795
- X2 = 795
- Y1 = 0
- Y2 = 20000
- End
- Begin VB.Line Underline
- BorderColor = &H00C0C0C0&
- Index = 2
- X1 = 2100
- X2 = 5625
- Y1 = 1875
- Y2 = 1875
- End
- Begin VB.Line Underline
- BorderColor = &H00C0C0C0&
- Index = 1
- X1 = 2100
- X2 = 5625
- Y1 = 1530
- Y2 = 1530
- End
- Begin VB.Line Underline
- BorderColor = &H00C0C0C0&
- Index = 0
- X1 = 2100
- X2 = 5625
- Y1 = 1200
- Y2 = 1200
- End
- Begin VB.Label lblGeneric
- Alignment = 1 'Right Justify
- BackStyle = 0 'Transparent
- Caption = "Copy:"
- ForeColor = &H00808080&
- Height = 240
- Index = 2
- Left = 1290
- MouseIcon = "Send.frx":25DC
- MousePointer = 99 'Custom
- TabIndex = 5
- Top = 1245
- Width = 690
- End
- Begin VB.Label lblGeneric
- Alignment = 1 'Right Justify
- BackStyle = 0 'Transparent
- Caption = "To:"
- ForeColor = &H00808080&
- Height = 240
- Index = 1
- Left = 1290
- MouseIcon = "Send.frx":272E
- MousePointer = 99 'Custom
- TabIndex = 6
- Top = 915
- Width = 690
- End
- Begin VB.Line lneBorder
- BorderColor = &H00808000&
- BorderWidth = 2
- Index = 0
- X1 = 780
- X2 = 780
- Y1 = 0
- Y2 = 20000
- End
- Begin VB.Line lneBorder
- BorderColor = &H00000000&
- Index = 1
- X1 = 780
- X2 = 20000
- Y1 = 2355
- Y2 = 2355
- End
- Begin VB.Image Stamp
- Height = 330
- Left = 6120
- Picture = "Send.frx":2880
- Top = 60
- Width = 495
- End
- Begin VB.Label lblGeneric
- Alignment = 1 'Right Justify
- BackStyle = 0 'Transparent
- Caption = "Subject:"
- ForeColor = &H00808080&
- Height = 240
- Index = 0
- Left = 1290
- TabIndex = 2
- Top = 1590
- Width = 690
- End
- Begin VB.Menu mnuAttach
- Caption = "Attachment"
- Visible = 0 'False
- Begin VB.Menu mnuAttachSelect
- Caption = "Select File to Attach"
- End
- Begin VB.Menu mnuAttachDelete
- Caption = "Delete Attachment"
- End
- End
- Attribute VB_Name = "Send"
- Attribute VB_Creatable = False
- Attribute VB_Exposed = False
- Option Explicit
- '<Public>---------------------------------------------
- Public FormNumber As Integer
- '</Public>--------------------------------------------
- Private Sub AttachFile(CancelClears As Boolean)
- Dim FileName As String
- FileName = ControlPanel.SelectFile(".*", "Attach File")
- If (FileName = "") Then
- If CancelClears Then
- AttachmentName = ""
- AttachmentFrame.Visible = False
- End If
- Else
- AttachmentFrame.Width = TextWidth(FileName) + 520
- AttachmentName = FileName
- AttachmentName.Width = TextWidth(FileName)
- AttachmentFrame.Visible = True
- End If
- End Sub
- Private Sub AttachIcon_Click()
- If AttachmentFrame.Visible Then
- PopupMenu mnuAttach
- Else
- Call AttachFile(True)
- End If
- End Sub
- Private Sub AttachLabel_Click()
- If AttachmentFrame.Visible Then
- PopupMenu mnuAttach
- Else
- Call AttachFile(True)
- End If
- End Sub
- Private Sub ExitButton_Click()
- Unload Me
- End Sub
- Private Sub AttachmentName_Click()
- PopupMenu mnuAttach
- End Sub
- Private Sub Form_Load()
- ReturnAddress = Properties.RealName & vbCrLf & Properties.SenderName
- Call GetWindowState(Me, "InternetMailSendWindow")
- End Sub
- Private Sub Form_QueryUnload(Cancel As Integer, UnloadMode As Integer)
- Call SetWindowState(Me, "InternetMailSendWindow")
- Call ControlPanel.DestroySendForm(FormNumber)
- End Sub
- Private Sub Form_Resize()
- Dim TextBoxWidth As Integer
- On Error Resume Next
- TextBoxWidth = Me.ScaleWidth - SendTo.left - 1410
- SendTo.Width = TextBoxWidth - 240
- CopyTo.Width = TextBoxWidth - 240
- Subject.Width = TextBoxWidth - 240
- Underline(0).X2 = TextBoxWidth + 1965
- Underline(1).X2 = TextBoxWidth + 1965
- Underline(2).X2 = TextBoxWidth + 1965
- PickAddress(0).left = Underline(0).X2 + 30
- PickAddress(1).left = Underline(0).X2 + 30
- MessageText.Move MessageText.left, MessageText.Top, Me.ScaleWidth - MessageText.left, Me.ScaleHeight - MessageText.Top
- Stamp.left = Me.ScaleWidth - 560
- ExitButton.Top = Me.ScaleHeight - 340
- End Sub
- Private Sub mnuAttachDelete_Click()
-
- AttachmentName = ""
- AttachmentFrame.Visible = False
-
- End Sub
- Private Sub mnuAttachSelect_Click()
- Call AttachFile(False)
- End Sub
- Private Sub CopyTo_GotFocus()
- Call SelectText(CopyTo)
- End Sub
- Private Sub PickAddress_Click(Index As Integer)
- With Addresses
- .Show vbModal
- If (Not .PressedOK) Then Exit Sub
- If (Index = 0) Then
- SendTo = .Selection
- Else
- CopyTo = .Selection
- End If
- End With
- End Sub
- Private Sub SendNow()
- '---- validate message
- If (SendTo = "") Then
- MsgBox "Please complete the 'To:' field before sending.", vbOKOnly + vbInformation, "Send Mail"
- Exit Sub
- End If
- '---- set some public properties
- Set ControlPanel.CurrentSendForm = Me
- ControlPanel.IsAttachment = (AttachmentName <> "")
- Call ControlPanel.ProcessMail
- End Sub
- Private Sub SendIcon_Click()
- SendNow
- End Sub
- Private Sub SendLabel_Click()
- SendNow
- End Sub
- Private Sub Subject_GotFocus()
- Call SelectText(Subject)
- End Sub
- Private Sub SendTo_GotFocus()
- Call SelectText(SendTo)
- End Sub
- Public Sub ShowOffset(OffsetLeft As Integer, OffsetTop As Integer)
- '---- add additional offset
- Me.Move OffsetLeft, OffsetTop
- End Sub
-